import '@/utils/request'
import service from '@/utils/request'
// eslint-disable-next-line no-unused-vars
import qs from 'qs'
// eslint-disable-next-line no-unused-vars
const { httpPostForm, httpPost, httpGet } = service

//获取返回保证金结算列表
const getMainList = params=>{
    return  httpPost({
        url: 'projectsettle/returnDepositSettlement/listByEntity',
        params
    })
}
//新增返还保证金结算
const createBond = params=>{
    return  httpPost({
        url: '/projectsettle/returnDepositSettlement/create',
        params
    })
}
//根据返还保证金结算id删除返还保证金结算
const deleteBond = params=>{
    return  httpGet({
        url: '/projectsettle/returnDepositSettlement/delete',
        params
    })
}
//根据返还保证金结算id查询查询返还保证金结算基本信息
const getBond = params=>{
    return  httpGet({
        url: '/projectsettle/returnDepositSettlement/findById',
        params
    })
}
//根据返还保证金结算id获取工程类返还保证金结算明细
const getBondList = params=>{
    return  httpGet({
        url: '/projectsettle/returnDepositSettlement/listDtlsById',
        params
    })
}
//修改返还保证金结算
const updateBond = params=>{
    return  httpPost({
        url: '/projectsettle/returnDepositSettlement/update',
        params
    })
}
//更新返还保证金结算明细
const updateBondList = params=>{
    return  httpPost({
        url: '/projectsettle/returnDepositSettlement/updateDtls',
        params
    })
}
//获取截止上期末返还保证金信息
const listPreviousTotalReturnDepositInfo = params=>{
    return  httpGet({
        url: '/projectsettle/returnDepositSettlement/listPreviousTotalReturnDepositInfo',
        params
    })
}
export {
    getMainList,
    createBond,
    deleteBond,
    getBond,
    getBondList,
    updateBond,
    updateBondList,
    listPreviousTotalReturnDepositInfo
}
